Hey guys,
if (!canOpenFile("d:\\CTRS_Import_log.csv", true))
{
print "cant open file\n"
}
ManuelFelger - Mon Sep 28 08:41:23 EDT 2009 |
Re: Check if logfile can be opend for write Using your method, you could always string CurrentContents = readFile(NameFile); then if your canOpenFile works, open the file and save the CurrentContents, then append your new log info.
|
Re: Check if logfile can be opend for write
Thanks Louie,
string currentContents = readFile("blabla")
if (!canOpenFile("blabla", true))
{
errorBox "blabla"
halt
}
logfile = append("blabla")
logfile << currentContents
|